package models

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ GoodModel = (*customGoodModel)(nil)

type (
	// GoodModel is an interface to be customized, add more methods here,
	// and implement the added methods in customGoodModel.
	GoodModel interface {
		goodModel
	}

	customGoodModel struct {
		*defaultGoodModel
	}
)

// NewGoodModel returns a model for the database table.
func NewGoodModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) GoodModel {
	return &customGoodModel{
		defaultGoodModel: newGoodModel(conn, c, opts...),
	}
}
